package com.xjj.myoa.entity;

import org.springframework.stereotype.Component;

import javax.persistence.Entity;
import javax.persistence.Table;

@Component
@Table(name="oa_users")

public class OaUser {
    private Integer id;
    private String buMan;
    private String realName;
    private String userName;
    private String userRole;
    private String userPhone;
    private String userGongZi;

    public OaUser() {
    }

    public OaUser(Integer id, String buMan, String realName, String userName, String userRole, String userPhone, String userGongZi) {
        this.id = id;
        this.buMan = buMan;
        this.realName = realName;
        this.userName = userName;
        this.userRole = userRole;
        this.userPhone = userPhone;
        this.userGongZi = userGongZi;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBuMan() {
        return buMan;
    }

    public void setBuMan(String buMan) {
        this.buMan = buMan;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserGongZi() {
        return userGongZi;
    }

    public void setUserGongZi(String userGongZi) {
        this.userGongZi = userGongZi;
    }

    @Override
    public String toString() {
        return "OaUser{" +
                "id=" + id +
                ", buMan='" + buMan + '\'' +
                ", realName='" + realName + '\'' +
                ", userName='" + userName + '\'' +
                ", userRole='" + userRole + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userGongZi='" + userGongZi + '\'' +
                '}';
    }
}
